<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>测试类型转换器</title>
    <base th:href="@{/}">
</head>
<body>
    <h2>Spring自带转换器</h2>
    <form action="type/product" method="post">
        生成日期: <input type="text" name="productDate" value="1992-10-15 17:15:06"/> <br>
        产品价格: <input type="text" name="productPrice" value="111,222,333.444"/> <br>
        <button type="submit">保存</button>
    </form>
    <hr>
    <h2>自定义转换器</h2>
    <form action="type/student" method="post">
        地址: <input type="text" name="address" value="浙江省,杭州市,西湖区">
        <button type="submit">保存</button>
    </form>
    <hr>
    <h2>数据有效性验证</h2>

    <form action="valid/user" method="post">
        账号: <input type="text" name="account" value="root"> <br>
        密码: <input type="text" name="password" value="abc123"> <br>
        年龄: <input type="text" name="age" value="24"> <br>
        email: <input type="text" name="email" value="ddone@123.com"> <br>
        生日: <input type="text" name="birthday" value="1998/10/10 10:10:10"> <br>
        身高: <input type="text" name="height" value="180.0"> <br>
        <button type="submit">保存</button>
    </form>
</body>
</html>